//
//  NetDataEngine.h
//  LimitFree
//
//  Created by lijinghua on 16/3/1.
//  Copyright © 2016年 lijinghua. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void(^SuccessBlockType)(id respondObject);
typedef void(^FailedBlockType) (NSError *error);

@interface NetDataEngine : NSObject

+(instancetype)sharedInstance;

//获取app 列表的请求接口
- (void)requestAppList:(NSString*)url success:(SuccessBlockType)successBlock falied:(FailedBlockType)failedBlock;

//获取应用详情的接口
- (void)requestAppDetail:(NSString*)url success:(SuccessBlockType)successBlock falied:(FailedBlockType)failedBlock;

//根据用户的地理位置信息，获取附近的app的信息
- (void)requestNearbyApp:(SuccessBlockType)successBlock falied:(FailedBlockType)failedBlock;

//获取分类数据
- (void)requestCategory:(SuccessBlockType)successBlock falied:(FailedBlockType)failedBlock;
@end
